<div id="new_designer" class='new_or_edit'>
  <div class='form'>
    <% remote_form_for @designer,
            :update => :new_designer,
            :url => designers_url,
            :loading => short_loader( :new_designer, :height_from => :new_designer, :width_from => :new_designer),
            :html => {
              :id => :new_designer_form
            } do |f| %>
      <dl>
        <dt>设计师-姓名：</dt>
        <dd>
          <%= f.text_field :full_name, :size => 90 %>
        </dd>
      </dl>
      <dl class='l'>
        <dt>所在部门：</dt>
        <dd>
          <%= hidden_field_tag :department_id, params[:department_id] %>
          <%= f.select :department_id, Department.all.collect {|d| [ d.name, d.id ] }  %>
        </dd>
      </dl>
      <dl>
        <dt>座机：</dt>
        <dd>
          <%= f.text_field :office_phone, :size => 90 %>
        </dd>
      </dl>
      <dl>
        <dt>手机：</dt>
        <dd>
          <%= f.text_field :cell_phone, :size => 90 %>
        </dd>
      </dl>
      <dl>
        <dt class='l'>备注：</dt>
        <dd>
          <%= f.text_area :remark %>
        </dd>
      </dl>
    <% end %>
  </div>
  <div class='buttons'>
    <%= link_to_function '保存',
          "$('new_designer_form').onsubmit()",
          :class => 'save button'
      %>
    <%= link_to_function '返回',
          "Effect.BlindUp('new_designer')",
          :class => 'go_back button'
      %>
  </div>
</div>